/*
*@author:ly
*/
/*
*	$(function(){
	$(".contbox ").imgShadow();
	});
*/
;(function($){
$.fn.extend({
	"imgShadow":function(_this){
			var _this =$(this),
			 	_obj=_this.children();
				
			var _opacity = 0.5 ;	
				_this.css({
						  "overflow":"hidden",
						  "zoom":"1"
						  });
			_this.children().each(function(){
				var aWidth = $(this).width(),
					aHeight =$(this).height();	
				$("<div class='maskLayer' style='position:absolute;left:0;top:0;z-index:999;background:#000;filter: alpha(opacity=0); opacity: 0; width:"+aWidth+"px;height:"+aHeight+"px;'></div>").appendTo($(this));
			});	
			_obj.bind("mouseenter",function(){
				$(this).parent().find(".maskLayer").css({"opacity":0.5});							
				$(this).find(".maskLayer").css({"opacity":0}).end().siblings().find(".maskLayer").css({"opacity":_opacity});
				});
			_obj.bind("mouseleave",function(){
					$(this).parent().find(".maskLayer").css({"opacity":0});						
				});
		}	
	});
return this;
})(jQuery);